<?php

class property implements observer{

	public static function create($sClass, item $item){
/*{{{*/
		$sC = 'property_' . $sClass;
		$property = new $sC($item);

		return $property;
/*}}}*/
	}

	protected $item;

	protected $currentValue = 0;

	public function __construct(item $item){
/*{{{*/

		$this -> item = $item;

		if($item instanceof observable){
			$this -> item -> registerObserver($this);
		}

		$this -> init();
/*}}}*/
	}

	public function event(event $event){}
	protected function init(){}


	public function __get($sName){
/*{{{*/
		if($sName == 'value'){
			return $this -> currentValue;
		}
/*}}}*/
	}


}



?>
